<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello SyntaxHighlighter</title>
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="css/shCore.css">
<script type="text/javascript">
	SyntaxHighlighter.all();
</script>
<style type="text/css">
body {
	background: white;
	font-family: helvetica;
}
</style>

<script type="text/javascript">
	dp.SyntaxHighlighter.HighlightAll('code');//这里的‘code’ 为上面放置代码的容器
</script>
</head>

<body>

	<h1>Hello SyntaxHighlighter</h1>

	<pre name="code" class="java">
package com.jonfhancock.jsontojava;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Demo {
	public static void main(String[] args) {
		Pattern pat = Pattern.compile("\\[(.*?)\\]");
		Matcher mat = pat.matcher("dasda[嘻嘻]sdasasdasdas[母亲节]das[给力]dasda[威武]sdasdad");
		List tempFaceTexts = new ArrayList();
		while (mat.find()) {
			tempFaceTexts.add(mat.group(0));
		}

		for (int i = 0; i < tempFaceTexts.size(); i++) {
			System.out.println(tempFaceTexts.get(i));
		}
	}
}


	
	
	
	
	
	
	
	
	
	</pre>
</html>
